package com.lyubia.shop.portal.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/order")
public class OrderController {

    @Value("${shop.order.url}")
    private String shopOrderUrl;

    @PostMapping("/preOrder")
    public String preOrder() {
        return "redirect:"+shopOrderUrl+"order/preOrder";
    }

}
